package com.tju.resource.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * qc订单表,包括(车间生产,包装部)的转序单
 *
 * @TableName tb_qc_order
 */
@Data
public class TbQcOrder implements Serializable {
    /**
     * QC单 ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 生产计划id
     */
    private Long ppId;
    /**
     * 外发id
     */
    private Long outwardId;
    /**
     * 报工单id
     * */
    private Long repId;

    /**
     * 检查数量(入QC数量)
     */
    private Integer checkNum;

    /**
     * 物品所在位置
     */
    private String onPos;

    /**
     * 是否已检查完成
     */
    private String finished;

    /**
     * 合格数
     */
    private Integer qualify;

    /**
     * 不合格数
     */
    private Integer disQua;

    /**
     * 转序单来自哪方
     */
    private String fromDiv;

    /**
     * 审核人(确认完成人员)
     */
    private String appBy;

    /**
     * 是否检测通过(0:不通过,1:通过)
     */
    private Integer passed;

    /**
     * 指令单好
     */
    @TableField(exist = false)
    private String cmdNumber;

    /**
     * 订单号
     */
    @TableField(exist = false)
    private String orderNumber;

    /**
     * 生产型号
     */
    @TableField(exist = false)
    private String specNumber;

    /**
     * 物料号
     */
    @TableField(exist = false)
    private String matlNumber;

    /**
     * 物料名称
     */
    @TableField(exist = false)
    private String matlName;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建者
     */
    private String createBy;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新者
     */
    private String updateBy;

    /**
     * 更新时间
     */
    private Date updateTime;

    @Override
    public String toString() {
        return "TbQcOrder{" +
                "id=" + id +
                ", ppId=" + ppId +
                ", checkNum=" + checkNum +
                ", onPos='" + onPos + '\'' +
                ", finished='" + finished + '\'' +
                ", qualify=" + qualify +
                ", disQua=" + disQua +
                ", fromDiv='" + fromDiv + '\'' +
                ", appBy='" + appBy + '\'' +
                ", cmdNumber='" + cmdNumber + '\'' +
                ", orderNumber='" + orderNumber + '\'' +
                ", specNumber='" + specNumber + '\'' +
                ", matlNumber='" + matlNumber + '\'' +
                ", matlName='" + matlName + '\'' +
                ", remark='" + remark + '\'' +
                ", createBy='" + createBy + '\'' +
                ", createTime=" + createTime +
                ", updateBy='" + updateBy + '\'' +
                ", updateTime=" + updateTime +
                '}';
    }
}